package extra.navigator;

import java.awt.AWTEvent;
import java.awt.Toolkit;
import java.awt.event.AWTEventListener;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import org.jvnet.substance.skin.SubstanceBusinessLookAndFeel;
import org.jvnet.substance.skin.SubstanceMistAquaLookAndFeel;

public class ExtraNavigatorUI {
	public ExtraNavigatorUI(ExtraNavigatorData mainData) {
		// TODO Auto-generated constructor stub
		
		
		try {
			UIManager.setLookAndFeel(new SubstanceMistAquaLookAndFeel());
            JFrame.setDefaultLookAndFeelDecorated(true);
            JDialog.setDefaultLookAndFeelDecorated(true);
		} catch (Exception e) {
			System.err.println("Oops! Something went wrong!");
		}	

		
		
		Toolkit toolkit = Toolkit.getDefaultToolkit(); 
		CapListener capListener = new CapListener();
		toolkit.addAWTEventListener(capListener, AWTEvent.KEY_EVENT_MASK);
		toolkit.addAWTEventListener(capListener, AWTEvent.MOUSE_EVENT_MASK );
		toolkit.addAWTEventListener(capListener, AWTEvent.WINDOW_EVENT_MASK);
		ExtraNavigatorUI_1 NavUI_1 = new ExtraNavigatorUI_1(mainData);
		NavUI_1.run();
	}
}

class CapListener implements AWTEventListener {
	@Override
	public void eventDispatched(AWTEvent arg0) {
		// TODO Auto-generated method stub
		//System.out.println(arg0);
		
	}
}